import random 
import pygame


nums = []
for i in range(9):
    nums.append(i + 1)

print("before shuffle:", nums)
random.shuffle(nums)
print("after shuffle:", nums)